/* 车辆维护记录页面样式 */

/* 页面头部 */
.page-header {
    background: white;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.header-right .el-button {
    padding: 12px 20px;
}

/* 主要内容区 */
.main-content {
    padding: 0 24px;
}

/* 筛选区域 */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-form .el-form-item {
    margin-bottom: 0;
    margin-right: 0;
}

/* 维护记录列表 */
.maintenance-list {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 表格样式 */
.el-table {
    margin-bottom: 20px;
}

.el-table th {
    background-color: #f9fafb !important;
    color: #374151;
    font-weight: 600;
}

.el-table td {
    color: #4b5563;
}

.delete-btn {
    color: #f56c6c;
}

.delete-btn:hover {
    color: #f56c6c;
    background-color: rgba(245, 108, 108, 0.1);
}

/* 分页容器 */
.pagination-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

/* 对话框样式 */
.el-dialog {
    border-radius: 12px;
    overflow: hidden;
}

.el-dialog__header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}

.el-dialog__title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.el-dialog__body {
    padding: 24px;
}

.el-dialog__footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
}

/* 表单样式 */
.el-form-item__label {
    font-weight: 500;
    color: #374151;
}

.el-input__inner,
.el-textarea__inner {
    border-radius: 6px;
}

.el-input__inner:focus,
.el-textarea__inner:focus {
    border-color: #667eea;
}

/* 维护详情样式 */
.maintenance-details {
    padding: 20px;
}

.maintenance-details .el-descriptions {
    margin-bottom: 32px;
}

.maintenance-details .el-descriptions__label {
    font-weight: 500;
    color: #374151;
}

.maintenance-details .el-descriptions__content {
    color: #4b5563;
}

/* 维护进度时间线 */
.maintenance-timeline {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.maintenance-timeline h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.el-timeline-item__content {
    color: #4b5563;
}

.el-timeline-item__timestamp {
    color: #6b7280;
}

/* 按钮样式 */
.el-button--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.el-button--primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6d4c98 100%);
}

.el-button--success {
    background: #10b981;
    border: none;
}

.el-button--success:hover {
    background: #059669;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .filter-form {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-right {
        width: 100%;
    }

    .header-right .el-button {
        width: 100%;
    }

    .main-content {
        padding: 0 16px;
    }

    .filter-section,
    .maintenance-list {
        padding: 16px;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-form .el-form-item {
        width: 100%;
    }

    .el-table {
        width: 100%;
        overflow-x: auto;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .page-header,
    .filter-section,
    .maintenance-list {
        background: #1f2937;
    }

    .header-left h1,
    .el-dialog__title,
    .maintenance-timeline h3 {
        color: #f9fafb;
    }

    .el-table th {
        background-color: #111827 !important;
        color: #f9fafb;
    }

    .el-table td {
        color: #d1d5db;
    }

    .el-form-item__label {
        color: #f9fafb;
    }

    .el-input__inner,
    .el-textarea__inner {
        background-color: #111827;
        border-color: #374151;
        color: #f9fafb;
    }

    .el-input__inner:focus,
    .el-textarea__inner:focus {
        border-color: #667eea;
    }

    .el-dialog {
        background: #1f2937;
    }

    .el-dialog__header,
    .el-dialog__footer {
        border-color: #374151;
    }

    .maintenance-details .el-descriptions__label {
        color: #f9fafb;
    }

    .maintenance-details .el-descriptions__content {
        color: #d1d5db;
    }

    .maintenance-timeline {
        border-color: #374151;
    }

    .el-timeline-item__content {
        color: #d1d5db;
    }

    .el-timeline-item__timestamp {
        color: #9ca3af;
    }
} 